package ua.org.enginer.maps
{
	import mx.core.UIComponent;
	
	public class CircleMarker extends UIComponent implements IMapMarker
	{
		public var data:Object
		
		private var _latitude:Number
		private var _longitude:Number
		
		public function get latitude():Number {
			return _latitude
		}
		public function set latitude(value:Number):void {
			_latitude = value
		}
		
		public function get longitude():Number {
			return _longitude
		}
		public function set longitude(value:Number):void {
			_longitude = value
		}
		
		public function set map(value:IMap):void {}
		
		public function CircleMarker(radius:Number=10, color:uint=0xFF0000)
		{
			super();
			
			if (radius <= 0) radius = 5
			
			graphics.lineStyle(1, color, .9);
			graphics.beginFill(color, .3);
			graphics.drawCircle(0, 0, radius);
			graphics.endFill();
		}
	}
}